const Admin = require('../models/admins')

module.exports = {
  async createAdmin(username, password) {
    return await Admin.create({ username, password })
  },

  async getAdminById(id) {
    return await Admin.findByPk(id)
  },

  async getAllAdmins() {
    return await Admin.findAll()
  },
}
